package kyssion.leetcode.util;

import java.util.ArrayList;
import java.util.List;

public class BuildUtil {
    public static <T> List<T> createList(T[] ts) {
        List<T> list = new ArrayList<>();
        for (T t : ts) {
            list.add(t);
        }
        return list;
    }

    public static List<Integer> createIntegerList(int[] arr) {
        List<Integer> list = new ArrayList<>();
        for (Integer t : arr) {
            list.add(t);
        }
        return list;
    }
}
